package mine.auction;

public class AuctionTest {
	
	public static void main(String[] arg) {
		User john = new User("John");
		User jack = new User("Jack");

		IAuction a = new Auction();

		int tv = a.addItem("TV");
		int car = a.addItem("Car");

		System.out.println("Items:");

		a.printItems();

		a.recordBid(tv, john, 20);
		a.recordBid(tv, jack, 30);
		a.recordBid(tv, john, 21);
		a.recordBid(tv, john, 31);

		a.printItems();

		a.recordBid(car, john, 5000);
		a.recordBid(car, jack, 6000);

		a.printItems();
		
		System.out.println("Items for John:");
		
		a.printItems(john);
	}
}